import request from '@/utils/request'

// 查询运营管理资讯动态列表
export function listInformation(query) {
    return request({
        url: '/server/information/list',
        method: 'get',
        params: query
    })
}

// 查询运营管理资讯动态详细
export function getInformation(informationId) {
    return request({
        url: '/server/information/' + informationId,
        method: 'get'
    })
}

// 新增运营管理资讯动态
export function addInformation(data) {
    return request({
        url: '/server/information',
        method: 'post',
        data: data
    })
}

// 修改运营管理资讯动态
export function updateInformation(data) {
    return request({
        url: '/server/information',
        method: 'put',
        data: data
    })
}

// 删除运营管理资讯动态
export function delInformation(informationId) {
    return request({
        url: '/server/information/' + informationId,
        method: 'delete'
    })
}

// 导出运营管理资讯动态
export function exportInformation(query) {
    return request({
        url: '/server/information/export',
        method: 'get',
        params: query
    })
}
